package com.sl.au.entity;

import java.util.List;

import javax.persistence.Column;



/*保存用户界面中的一个大模块（即本级和下级菜单）*/
public class ModuleInfo 
{


	//菜单信息
	private Boolean hasChildren;
    private Boolean has3Menu;
    private Module self;
    
    private List<Module> modules;//二级菜单
    private List<ModuleInfo> modules2;//三级菜单
    
	
	
	
	
    public Boolean getHasChildren()
    {
    	
        return hasChildren;
    }
    
    public void setHasChildren(Boolean hasChildren)
    {
        this.hasChildren = hasChildren;
    }
    
    public List<Module> getModules()
    {
        return modules;
    }
    
    public void setModules(List<Module> modules)
    {
        this.modules = modules;
    }
    
    public Module getSelf()
    {
        return self;
    }
    
    public void setSelf(Module self)
    {
        this.self = self;
    }
    
    public Boolean getHas3Menu() {
		return has3Menu;
	}

	public void setHas3Menu(Boolean has3Menu) {
		this.has3Menu = has3Menu;
	}	


	


	public List<ModuleInfo> getModules2() {
		return modules2;
	}

	public void setModules2(List<ModuleInfo> modules2) {
		this.modules2 = modules2;
	}



	
    
    @Override
    public String toString()
    {
        return "ModuleInfo [hasChildren=" + hasChildren + ", self=" + self.toString() +
                ", modules=" + modules + "]";
    }

	@Override
	public int hashCode() {		
		return self.hashCode();
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ModuleInfo other = (ModuleInfo) obj;
		if (self == null) {
			if (other.self != null)
				return false;
		} else if (!self.equals(other.self))
			return false;
		return true;
	}



    
}
